<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Order;
use DB;
use Auth;
class GrowController extends Controller
{

    public function getCustomer(Request $req){
      $today = date('Y-m-d',time());
      $ord = DB::table('orders')->where('ordtime','<',$today)->get();
      return view('customer',['ord'=>$ord]);
    }

    public function getToadyOrder(){
      return view('todayOrder');
    }
    public function postTodayOrder(Request $req){
      $mobile = $req->input('mobile');
      $mob = DB::table('ordinfos')->where('mobile',$mobile)->get();
      return view('todayOrder',['mob'=>$mob]);
    }

}
